package scau.mis4.chanyulin.entity;

import scau.mis4.chanyulin.base.common.Unique;

import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by cyl on 2018/03/27.
 * Good实体类
 */
public class Good extends Unique {
    private String goodNo;

    private String title;

    private String clazzId;

    private String brandId;

    private String supplierId;

    // ----------------------------------

    @Transient
    private Clazz clazz;

    @Transient
    private Brand brand;

    @Transient
    private Supplier supplier;

    // ----------------------------------

    public Good() {
    }

    public Good(String goodNo, String title, String clazzId, String brandId, String supplierId) {
        this.goodNo = goodNo;
        this.title = title;
        this.clazzId = clazzId;
        this.brandId = brandId;
        this.supplierId = supplierId;
    }

    @Override
    public String toString() {
        return "Good{" +
                "goodNo='" + goodNo + '\'' +
                ", title='" + title + '\'' +
                ", clazzId='" + clazzId + '\'' +
                ", brandId='" + brandId + '\'' +
                ", supplierId='" + supplierId + '\'' +
                ", clazz=" + clazz +
                ", id='" + id + '\'' +
                ", brand=" + brand +
                ", supplier=" + supplier +
                '}';
    }

    public String getGoodNo() {
        return goodNo;
    }

    public void setGoodNo(String goodNo) {
        this.goodNo = goodNo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getClazzId() {
        return clazzId;
    }

    public void setClazzId(String clazzId) {
        this.clazzId = clazzId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

}
